package com.cjq.auth.remote;

import com.cjq.common.domain.User;
import com.cjq.common.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
@FeignClient(name = "cjq-user")
public interface UserRemoteService {
    /**
     * 通过账号查询用户
     * @param userName
     * @return
     */
    @GetMapping("/user/findUser/{userName}")
    public Result<User> findUser(@PathVariable String userName);
}
